import java.util.Scanner;

/*
    等腰三角形
 */
public class test10 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int count = 4*(n-1);
        String str="";
        for (int i = 0 ; i < 9999 ; i++){
            if (str.length()>count) break;
            else str += i;
        }

        int k = 1;
        for(int i=0;i<n;i++){		//开始打印
            for(int j=0;j<n+i;j++){
                if(i==n-1){			//最后一行
                    System.out.print(str.substring(k,count-i+1));
                    break;
                }
                else if(j==n-i-1) System.out.print(str.charAt(k++));
                else if(j==n-1+i) System.out.print(str.charAt(count-i));
                else System.out.print(" .");
            }
            System.out.println();
        }
    }
}
